﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExamServer.Entities
{
    /// <summary>
    /// 试题类型实体--针对数据库的
    /// </summary>
    public class QuestionType
    {
        [Display(Name ="主键")]
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 试题类型
        /// </summary>
        [Required]
        [MaxLength(50)]
        [Display(Name ="类型名称")]
        public string TypeName { get; set; }
        [Required]
        [Display(Name ="类型状态")]
        public StateEnum TypeState { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name ="备注")]
        public string Remark { get; set; }
    }

    public enum StateEnum
    {
        可用=1,不可用=2,暂停使用=3,已删除=4
    }
}
